package com.zdd.ehe.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zdd.ehe.entity.Post;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zdd.ehe.entity.Role;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhuiZhu
 * @since 2023-03-18
 */
public interface IPostService extends IService<Post> {

    /**
     * 插入帖子数据
     * @param post
     * @return
     */
    int insert(Post post);

    /**
     * 分页查询帖子列表
     * @param page
     * @return
     */
    Page<Post> getAllPostByPage(Page<Post> page);
}
